package comparer;

import java.util.ArrayList;
import java.util.Arrays;

import checker.ArrayChecker;
import checker.QuotationChecker;

import words.Quotation;
import words.StringArrayType;
import words.Types;

public class QuotationComparer extends TypeComparer {
	private QuotationChecker arraychecker;
	public QuotationComparer()
	{
		this.arraychecker = new QuotationChecker();
	}

	
	public void compare()
	{
		StringArrayType origin_type = (StringArrayType) super.getOrigin();
		StringArrayType compared_type = (StringArrayType) super.getCompared();
		this.arraychecker.set_origin_arraylist(origin_type.getArrayList());
		this.arraychecker.set_compared_arraylist(compared_type.getArrayList());
		this.arraychecker.compare();
		super.set_count(this.arraychecker.getCount());
	}

}
